//
//  ContactInfo.m
//  HxgProject
//
//  Created by hxg on 2018/3/27.
//  Copyright © 2018年 XMYY-19. All rights reserved.
//

#import "ContactInfo.h"
#import "NSObject+ComOperator.h"

@implementation ContactInfo

- (instancetype)init
{
    self = [super init];
    
    if (self)
    {
        self.contactName1 = @"";
        self.contactPhone1 = @"";
        self.contactName2 = @"";
        self.contactPhone2 = @"";
    }
    return self;
}


- (instancetype)initWithDic:(NSDictionary *)dic
{
    if ([self init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    NSLog(@"<%s has UndefinedKey is:%@>",__FILE__,key);
}

- (void) setNilValueForKey:(NSString *)key
{
    NSLog(@"%s",__func__);
}

-(id)valueForUndefinedKey:(NSString *)key{
    NSLog(@"出现异常，该key不存在%@",key);
    return nil;
}

@end
